﻿using Hematology.HmtMembership.Interface;
using axCommerce.Membership.Service;

namespace axCommerce.Membership
{
	public class MembershipHelper
	{
		private static IFormsAuthenticationService _formsService;
		public static IFormsAuthenticationService FormsService
		{
			get { return _formsService ?? (_formsService = new FormsAuthenticationService()); }
			set { _formsService = value; }
		}

		private static IMembershipService _membershipService;
		public static IMembershipService MembershipService
		{
			get { return _membershipService ?? (_membershipService = new AccountMembershipService()); }
			set { _membershipService = value; }
		}

		private static IRoleService _roleService;
		public static IRoleService RoleService
		{
			get { return _roleService ?? (_roleService = new AccountRoleService()); }
			set { _roleService = value; }
		}
	}
}